//
//  DetailInfoCell.m
//  HengHuaSupervision
//
//  Created by wanglong8889@126.com on 14-3-23.
//  Copyright (c) 2014年 XD-XY. All rights reserved.
//

#import "DetailInfoCell.h"
#import "XDTools.h"
#define CellHeight  56
@implementation DetailInfoCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.labelFirst = [UILabel initLabel:CGRectMake(0, 0, 139, CellHeight) textFont:[UIFont systemFontOfSize:16.0] textColor:[UIColor grayColor] textAlignment:NSTextAlignmentCenter];

        [self addSubview:_labelFirst];
        
        UIView *lineView1 = [UIView initView:CGRectMake(_labelFirst.frame.origin.x+_labelFirst.frame.size.width, 0, 1, _labelFirst.frame.size.height) bgcolor:[UIColor grayColor]];
        lineView1.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"cell_detail_line"]];
        [self addSubview:lineView1];
        
        self.labelSec = [UILabel initLabel:CGRectMake(lineView1.frame.origin.x+lineView1.frame.size.width, 0, 327, CellHeight) textFont:[UIFont systemFontOfSize:15.0] textColor:RGBA(43, 43, 43) textAlignment:NSTextAlignmentCenter];

//        _labelSec.font = [UIFont fontWithName:@"Helvetica-Bold" size:15.0];
        [self addSubview:_labelSec];
        
        UIView *lineView2 = [UIView initView:CGRectMake(_labelSec.frame.origin.x+_labelSec.frame.size.width, 0, 1, _labelSec.frame.size.height) bgcolor:[UIColor grayColor]];
        lineView2.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"cell_detail_line"]];
        [self addSubview:lineView2];
        
        
        self.labelThird = [UILabel initLabel:CGRectMake(lineView2.frame.origin.x+lineView2.frame.size.width,0, 138, CellHeight) textFont:[UIFont systemFontOfSize:15.0] textColor:[UIColor grayColor] textAlignment:NSTextAlignmentCenter];
   
        [self addSubview:_labelThird];
        
        
        UIView *lineView3 = [UIView initView:CGRectMake(_labelThird.frame.origin.x+_labelThird.frame.size.width, 0, 1, _labelThird.frame.size.height) bgcolor:[UIColor grayColor]];
        lineView3.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"cell_detail_line"]];
        [self addSubview:lineView3];
        
        self.labelFour = [UILabel initLabel:CGRectMake(lineView3.frame.origin.x+lineView3.frame.size.width, 0, 325, CellHeight) textFont:[UIFont systemFontOfSize:15.0] textColor:RGBA(43, 43, 43) textAlignment:NSTextAlignmentCenter];
     
        [self addSubview:_labelFour];
        
        
        
        //cell未选中效果
        self.diselectBg = [[UIImageView alloc] init];
        _diselectBg.frame = CGRectMake(0, 0, self.frame.size.width,self.frame.size.height);
        self.backgroundView = _diselectBg;
    }
    return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
